package com.mohe.shanpao.service.crawler.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.mohe.shanpao.dao.crawler.CrawlRuleMapper;
import com.mohe.shanpao.domain.crawler.CrawlRule;
import com.mohe.shanpao.service.GenericServiceImpl;
import com.mohe.shanpao.service.crawler.CrawlRuleService;

@Service("crawlRuleService")
@Transactional
public class CrawlRuleServiceImpl extends GenericServiceImpl<CrawlRule> implements CrawlRuleService
{
    
    @Autowired
    private CrawlRuleMapper crawlRuleMapper;

	@Override
	public List<CrawlRule> listCrawlRules() {
		return crawlRuleMapper.listCrawlRules();
	}

	@Override
	public CrawlRule getCrawlRuleByItem(String item) {
		return crawlRuleMapper.getCrawlRuleByItem(item);
	}
    
    
}
